package com.carleasoft.mps.adu.business.role.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carleasoft.mps.adu.business.role.bean.entity.AuthorityTargetRoleEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ztm
 * @since 2021-09-13
 */
@Repository
public interface AuthorityTargetRoleDao extends BaseMapper<AuthorityTargetRoleEntity> {
    /**
     * 删除关系表
     *
     * @param roleCode
     * @return int
     */
    int deleteTargetRole(@Param("roleCode") String roleCode);
    /**
     * 查询默认权限
     * @param targetCodes
     * @return int
     */
    List<String> selectRolesByTargetCodes(@Param("targetCodes") List<String> targetCodes,@Param("targetTypes") List<Integer> targetType);
}
